package com.reebake.ideal.infra.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

 /**
 * 数据字典明细
 * 
 */
@Schema(name = "数据字典明细", description = "")
@TableName("idl_data_dict_item")
@Data
public class DataDictItem implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Schema(name = "主键", description = "")
    @TableId
    private String dictItemId;

    /** 数据字典编号 */
    @Schema(name = "数据字典编号", description = "")
    private String dataDictId;

    /** 字典代码 */
    @Schema(name = "字典代码", description = "")
    private String dictCode;

    /** 代码 */
    @Schema(name = "代码", description = "")
    private String dataCode;

    /** 名称 */
    @Schema(name = "名称", description = "")
    private String dataName;

    /** 状态 */
    @Schema(name = "状态", description = "")
    private String status;

    /** 排序 */
    @Schema(name = "排序", description = "")
    private Integer orderNo;

    /** 备注 */
    @Schema(name = "备注", description = "")
    private String remark;

    /** 删除标识 */
    @Schema(name = "删除标识", description = "")
    @TableLogic
    private Boolean deleteFlag;

    /** 租户号 */
    @Schema(name = "租户号", description = "")
    private String tenantId;

    /** 乐观锁 */
    @Schema(name = "乐观锁", description = "")
    private Integer revision;

    /** 创建人 */
    @Schema(name = "创建人", description = "")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /** 创建时间 */
    @Schema(name = "创建时间", description = "")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Schema(name = "更新人", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /** 更新时间 */
    @Schema(name = "更新时间", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

}